<template>
  <div class="content">
    <h1>根目录{{time}}-----{{this.$store.getters.level}}</h1>
    <div><el-button type="primary" @click="add">增加</el-button></div>
    <div><el-button type="primary" @click="edl">减少</el-button></div>
    <div><el-button type="primary" @click="jump">跳转</el-button></div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      time: 1
    }
  },
  methods: {
    add () {
      this.$store.dispatch('getAddCount', 1)
    },
    edl () {
      this.$store.dispatch('getDelCount', 1)
    },
    jump () {
      this.$router.push('/tab')
    }
  }
}
</script>

<style lang="less">
  .content{
    width: 100%;
  }
</style>
